-- GENERATED SPELL FOR [Desert Rumbler] --


function spell0_11746(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_11746', 577, 1)
end

function Sorts_11746(pUnit, Event)
local choix_sorts_11746 = math.random(0, 0)
if choix_sorts_11746 == 0 then
pUnit:RegisterEvent('spell0_11746', 1, 1)
end
end

function mob11746_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11746', math.random(1500, 3000), 1)
end

function mob11746_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11746_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11746_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11746, 1, 'mob11746_Action')
RegisterUnitEvent(11746, 2, 'mob11746_Leave')
RegisterUnitEvent(11746, 3, 'mob11746_Kill')
RegisterUnitEvent(11746, 4, 'mob11746_Die')
